package com.moli.iov.down.enums.command.upgrade;

/**
 * <p>
 *  升级条件
 * </p>
 *
 * @author: zql
 * @Date: 2019/4/8 14:41
 */
public enum UpgradeConditionsEnum {

    /**
     * 无条件执行
     */
    CONDITION_ZERO((byte)0x00, "无条件执行"),

    /**
     * 整车电源 OFF 档
     */
    CONDITION_ONE((byte)0x01, "整车电源 OFF 档"),

    /**
     * 整车电源大于 ACC 档且档位 P/N 档
     */
    CONDITION_TWO((byte)0x02, "整车电源大于 ACC 档且档位 P/N 档");

    private byte flag;

    private String msg;

    UpgradeConditionsEnum(byte flag, String msg){
        this.flag = flag;
        this.msg = msg;
    }

    public byte getFlag() {
        return flag;
    }

    public String getMsg() {
        return msg;
    }
}
